home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / Developer University / DU Projects / DataSave / Sources / Frame.h < prev    next >
Encoding:
Text File  |  1996-08-22  |  1.2 KB  |  46 lines  |  [TEXT/CWIE]

  1. //    Release Version:    $ ODF 2 $
  2. //    Copyright:    (c) 1993 - 1996 by Apple Computer, Inc., all rights reserved.
  3.  
  4. #ifndef FRAME_H
  5. #define FRAME_H
  6.  
  7. //=======================================================================
  8. // ----- Framework Includes -----
  9. #ifndef FWFRAME_H
  10. #include <FWFrame.h>        // FW_CFrame
  11. #endif
  12.  
  13. #ifndef FWRECT_H
  14. #include <FWRect.h>            // FW_CRect
  15. #endif
  16.  
  17. //=======================================================================
  18. class CDataSaveContent;
  19. class FW_CMouseEvent;
  20.  
  21. //=======================================================================
  22. class CDataSaveFrame : public FW_CFrame {
  23. public:
  24.     FW_DECLARE_AUTO(CDataSaveFrame)
  25.     
  26.                         CDataSaveFrame(Environment* ev, 
  27.                                     ODFrame* odFrame, 
  28.                                     FW_CPresentation* presentation, 
  29.                                     CDataSaveContent* content);
  30.     virtual             ~CDataSaveFrame();
  31. protected:
  32. // overrides
  33.     virtual void        Draw(Environment *ev, 
  34.                              ODFacet* odFacet, 
  35.                              ODShape* invalidShape);
  36.     virtual FW_Handled     DoMouseDown(Environment* ev, 
  37.                                     const FW_CMouseEvent& theMouseEvent);
  38. // new members
  39. private:
  40.     CDataSaveContent*     fDataSaveContent;
  41.     FW_CRect             fFrameRect;
  42. };
  43.  
  44. //=======================================================================
  45. #endif
  46.